package com.mybatils.db2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/5/21 9:44
 * @since JDK 1.8
 *
 * 数据库连接2
 */
public interface Test2Mapper extends BaseMapper {

    @Select("SELECT * FROM `springdemo`.`Test`")
    List<Map<String, Object>> stringDb2ObjectMapList();

    @Update("${sql}")
    int updateSql(@Param("sql")String sql);

    @Insert("${sql}")
    int insertSql(@Param("sql")String sql);

    @Select("${sql}")
    Object selectSql(@Param("sql")String sql);


}
